import request from '@/utils/request'

// 查询客户回访记录列表
export function listReview(query) {
  return request({
    url: '/teach/review/list',
    method: 'get',
    params: query
  })
}

// 查询客户回访记录详细
export function getReview(reId) {
  return request({
    url: '/teach/review/' + reId,
    method: 'get'
  })
}

// 新增客户回访记录
export function addReview(data) {
  return request({
    url: '/teach/review',
    method: 'post',
    data: data
  })
}

// 修改客户回访记录
export function updateReview(data) {
  return request({
    url: '/teach/review',
    method: 'put',
    data: data
  })
}

// 删除客户回访记录
export function delReview(reId) {
  return request({
    url: '/teach/review/' + reId,
    method: 'delete'
  })
}
